package com.admission.model;

import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

import com.admission.listener.AuditableEntity;
import com.annotation.AnElement;

//录取统计各省出档分数线
@Entity
@Table(name = "province_score")
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
public class ProvinceScore extends AuditableEntity{
	
	@AnElement
	private String sequence = "";// 序号
	@AnElement
	private String year = "";// 年份
	@AnElement
	private String province = "";// 省份
	@AnElement
	private String type = "";// 科类
	@AnElement
	private String firstLine="";//一本线
	@AnElement
	private String secondLine="";//二本线
	@AnElement
	private String toudangLine="";//投档线
	private Province provinces;
	
	public String getSequence() {
		return sequence;
	}
	public void setSequence(String sequence) {
		this.sequence = sequence;
	}
	public String getYear() {
		return year;
	}
	public void setYear(String year) {
		this.year = year;
	}
	public String getProvince() {
		return province;
	}
	public void setProvince(String province) {
		this.province = province;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public String getFirstLine() {
		return firstLine;
	}
	public void setFirstLine(String firstLine) {
		this.firstLine = firstLine;
	}
	public String getSecondLine() {
		return secondLine;
	}
	public void setSecondLine(String secondLine) {
		this.secondLine = secondLine;
	}
	public String getToudangLine() {
		return toudangLine;
	}
	public void setToudangLine(String toudangLine) {
		this.toudangLine = toudangLine;
	}
	@ManyToOne
	@JoinColumn(name="pro_id")
	public Province getProvinces() {
		return provinces;
	}
	public void setProvinces(Province provinces) {
		this.provinces = provinces;
	}
	

}
